package com.icloud.article.boot.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 草稿表
 * </p>
 *
 * @author raymond
 * @since 0000-00-00
 */
@Getter
@Setter
@TableName("draft")
@ApiModel(value = "Draft对象", description = "草稿表")
public class Draft implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty("创建人id")
    @TableField("created_id")
    private Long createdId;

    @ApiModelProperty("经度")
    @TableField("longitude")
    private String longitude;

    @ApiModelProperty("纬度")
    @TableField("latitude")
    private String latitude;

    @ApiModelProperty("可见范围,ALL-所有人,HOME-仅主页可见,FORBIDDEN-不让他看,STRANGER-仅陌生人可见,SQUARE-仅动态广场可见,SELF-仅自己可见")
    @TableField("visible")
    private String visible;

    @ApiModelProperty("内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("转发id")
    @TableField("transmit_id")
    private Long transmitId;


}
